import request from '@/utils/request'

// 查询仓库列表
export function queryPoorderLists(data) {
  return request({
    url: '/tBdStock/queryTBdStockList',
    method: 'post',
    data
  })
}
// 查询仓库列表 左侧tree图
export function queryStockGroup(data) {
  return request({
    url: '/tBdStockgroup/queryStockGroup',
    method: 'post',
    data
  })
}
// 新增仓库
export function insertStock(data) {
  return request({
    url: '/tBdStock/insertStock',
    method: 'post',
    data
  })
}
// 修改仓库
export function updateStock(data) {
  return request({
    url: '/tBdStock/updateStock',
    method: 'post',
    data
  })
}
// 仓库详情
export function queryTBdStockDetails(params) {
  return request({
    url: '/tBdStock/queryTBdStockDetails',
    method: 'get',
    params
  })
}
// 仓库详情反提交
export function notsubmitStock(data) {
  return request({
    url: '/tBdStock/notsubmitStock',
    method: 'post',
    data
  })
}
// 仓库详情提交
export function submitStock(data) {
  return request({
    url: '/tBdStock/submitStock',
    method: 'post',
    data
  })
}
// 仓库详情反审核
export function notreviewStock(data) {
  return request({
    url: '/tBdStock/notreviewStock',
    method: 'post',
    data
  })
}
// 仓库详情审核
export function reviewStock(data) {
  return request({
    url: '/tBdStock/reviewStock',
    method: 'post',
    data
  })
}
// 仓库详情禁用
export function disableStock(data) {
  return request({
    url: '/tBdStock/disableStock',
    method: 'post',
    data
  })
}
// 仓库详情启用
export function ableStock(data) {
  return request({
    url: '/tBdStock/ableStock',
    method: 'post',
    data
  })
}
// 仓库删除
export function deleteStock(data) {
  return request({
    url: '/tBdStock/deleteStock',
    method: 'put',
    data
  })
}
// 盘点方案列表
export function queryList(data) {
  return request({
    url: '/tStkStkcountscheme/queryList',
    method: 'post',
    data
  })
}
// 盘点方案 新增
export function insertStkcountscheme(data) {
  return request({
    url: '/tStkStkcountscheme/insertStkcountscheme',
    method: 'post',
    data
  })
}
// 盘点方案 详情
export function getStkcountschemeById(params) {
  return request({
    url: '/tStkStkcountscheme/getStkcountschemeById',
    method: 'get',
    params
  })
}
// 盘点方案 修改
export function updateStkcountscheme(data) {
  return request({
    url: '/tStkStkcountscheme/updateStkcountscheme',
    method: 'post',
    data
  })
}
// 盘点方案 删除
export function deleteStkcountscheme(data) {
  return request({
    url: '/tStkStkcountscheme/deleteStkcountscheme',
    method: 'post',
    data
  })
}
// 盘点方案 审核
export function stkCountAudit(data) {
  return request({
    url: '/tStkStkcountscheme/stkCountAudit',
    method: 'put',
    data
  })
}
// 盘点方案 反审核
export function stkCountUnAudit(data) {
  return request({
    url: '/tStkStkcountscheme/stkCountUnAudit',
    method: 'put',
    data
  })
}
// 盘点方案 提交
export function stkCountSubmit(data) {
  return request({
    url: '/tStkStkcountscheme/stkCountSubmit',
    method: 'put',
    data
  })
}
// 盘点方案 反提交
export function stkCountAuSubmit(data) {
  return request({
    url: '/tStkStkcountscheme/stkCountAuSubmit',
    method: 'put',
    data
  })
}
// 盘点方案 关闭
export function stkCountClose(data) {
  return request({
    url: '/tStkStkcountscheme/stkCountClose',
    method: 'post',
    data
  })
}
// 盘点方案 反关闭
export function stkCountUnClose(data) {
  return request({
    url: '/tStkStkcountscheme/stkCountUnClose',
    method: 'post',
    data
  })
}
// 盘点方案下推盘点作业
export function putStkInPut(data) {
  return request({
    url: '/tStkStkcountinput/putStkInPut',
    method: 'post',
    data
  })
}
// 盘点作业修改
export function updateStkcountInPut(data) {
  return request({
    url: '/tStkStkcountinput/updateStkcountInPut',
    method: 'post',
    data
  })
}
// 盘点作业删除
export function deleteStkcountInPut(data) {
  return request({
    url: '/tStkStkcountinput/deleteStkcountInPut',
    method: 'post',
    data
  })
}
// 盘点作业详情
export function getStkcountInPutById(data) {
  return request({
    url: '/tStkStkcountinput/getStkcountInPutById',
    method: 'post',
    data
  })
}
// 盘点作业审核
export function stkCountInPutAudit(data) {
  return request({
    url: '/tStkStkcountinput/stkCountInPutAudit',
    method: 'put',
    data
  })
}
// 盘点作业反审核
export function stkCountInPutUnAudit(data) {
  return request({
    url: '/tStkStkcountinput/stkCountInPutUnAudit',
    method: 'put',
    data
  })
}
// 盘点作业提交
export function stkCountInPutSubmit(data) {
  return request({
    url: '/tStkStkcountinput/stkCountInPutSubmit',
    method: 'put',
    data
  })
}
// 盘点作业反提交
export function stkCountInPutAuSubmit(data) {
  return request({
    url: '/tStkStkcountinput/stkCountInPutAuSubmit',
    method: 'put',
    data
  })
}
// 盘点作业关闭
export function stkCountInPutClose(data) {
  return request({
    url: '/tStkStkcountinput/stkCountInPutClose',
    method: 'put',
    data
  })
}
// 盘点作业反关闭
export function stkCountInPutUnClose(data) {
  return request({
    url: '/tStkStkcountinput/stkCountInPutUnClose',
    method: 'put',
    data
  })
}
// 盘点作业列表
export function queryStkcountInPutList(data) {
  return request({
    url: '/tStkStkcountinput/queryStkcountInPutList',
    method: 'post',
    data
  })
}
// ERP盘盈
export function queryStkcountGainList(data) {
  return request({
    url: '/tStkStkcountGain/queryStkcountGainList',
    method: 'post',
    data
  })
}
// ERP盘kui
export function queryStkcountLossList(data) {
  return request({
    url: '/tStkStkcountLoss/queryStkcountLossList',
    method: 'post',
    data
  })
}
// ERP盘点作业删除行
export function deleteStkcountInPutDetails(data) {
  return request({
    url: '/tStkStkcountinput/deleteStkcountInPutDetails',
    method: 'post',
    data
  })
}
